package com.healthcloud.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.healthcloud.dao.RestCompanyDao;
import com.healthcloud.entity.RestCompanyEntity;
import com.healthcloud.service.RestCompanyService;
import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;



@Service("restCompanyService")
@Transactional
public class RestCompanyServiceImpl implements RestCompanyService {
	@Autowired
	private RestCompanyDao restCompanyDao;
	
	@Override
	public RestCompanyEntity queryObject(Integer id){
		return restCompanyDao.queryObject(id);
	}
	
	@Override
	public List<RestCompanyEntity> queryList(RestCompanyEntity bean, PageParam pageParam){
		return restCompanyDao.queryList(bean, pageParam);
	}
	
	@Override
	public int queryTotal(RestCompanyEntity bean){
		return restCompanyDao.queryTotal(bean);
	}
	
	@Override
	public void save(RestCompanyEntity restCompany){
		restCompanyDao.save(restCompany);
	}
	
	@Override
	public void update(RestCompanyEntity restCompany){
		restCompanyDao.update(restCompany);
	}
	
	@Override
	public void delete(Integer id){
		restCompanyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		restCompanyDao.deleteBatch(ids);
	}

	@Override
	public RestCompanyEntity queryByName(String companyname) {
		return restCompanyDao.queryByName(companyname);
	}
}
